package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class Depot {
    public static final int STATE_NORMAL = 1;  //正常状态
    public static final int STATE_ABNORMAL = 0; //异常状态

    private Long id;

    private String name;

    private String sn;

    private String contract; //联系人

    private String phone;

    private String address;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputTime;

    private int state = STATE_NORMAL;

}